package com.yy.mapper;

import com.yy.entity.OrderDetail;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderDetailMapper {


    void insertBatch(List<OrderDetail> orderDetailList);

    List<OrderDetail> getByOrderId(long orderId);

    @Delete("delete from order_detail where order_id = #{id}")
    void delete(Long id);
}